/***************************************************************************
 *   Copyright (C) 2008 by Silvan Imsand <imsandli@gmail.com>              *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
 ***************************************************************************/

package com.sametime.twitterclient.twitterapi;

import java.net.URI;
import java.util.Date;

import org.eclipse.swt.graphics.Image;

/**
 * This class represent all properties we use from twitter
 * 
 * @since 1.0
 * @author Silvan Imsand
 */
public class TwitterStatus {

	private URI imagePath;
	private String screenName;
	private String message;
	private Date messageDate;
	public TwitterStatus() {

	}
	
	public TwitterStatus(URI profileImageUrl, String screenName, String text, Date createdAt) {
		this.imagePath = profileImageUrl;
		this.screenName = screenName;
		this.message = text;
		this.messageDate = createdAt;
	}

	public Image getImage() {
		return TwitterData.getInstance().getImage(imagePath);
	}
	
	public URI getImagePath() {
		return imagePath;
	}
	public void setImagePath(URI imagePath) {
		this.imagePath = imagePath;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Date getMessageDate() {
		return messageDate;
	}
	public void setMessageDate(Date messageDate) {
		this.messageDate = messageDate;
	}
	public String getScreenName() {
		return screenName;
	}
	public void setScreenName(String screenName) {
		this.screenName = screenName;
	}
	
}
